public class Clerk implements Comparable
{

    private String name;
    public Clerk(String name)
    {
        this.name=name;
    }
    public int compareTo(Object o)
    {
        if(o!=null&&o instanceof Clerk)
        {
            Clerk clerk=(Clerk) o;
            return this.name.compareTo(clerk.name);
        }
        return -1;
    }
    public String toString()
    {
        return(getName()+" ");
    }
    public String getName() {
        return this.name;
    }
}
